# -- coding: utf-8 --


class Dog:

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def eat(self):
        print(f'{self.name}喜欢吃')

    def play(self):
        print(f'{self.name}喜欢玩')


class Cat:

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def eat(self):
        print(f'{self.name}喜欢吃')

    def play(self):
        print(f'{self.name}喜欢玩')